package com.wang.code;
public class RegexTest_1 {

	public static void main(String[] args) {
		String regex = "^[^0-9]$";
		String str = "123";
		boolean matches = str.matches(regex);
		System.out.println(matches);
		
		
		regex = "[abcd]*";
		str = "ab";
		boolean matches3 = str.matches(regex);
		System.out.println(matches3);
		regex = "^[1][3-9][0-9]{9}$";
		str = "13380806969";
		boolean matches2 = str.matches(regex);
		System.out.println(matches2);
	}

}
